import React from 'react';
import { NavBar } from 'react-vant';
import { useNavigate } from "react-router-dom";

import "../assent/css/back.css";

function Back(prpos) {
    let nav = useNavigate();
    return (
        <NavBar
            title={prpos.title}
            onClickLeft={() => {
                nav(-1)
            }}
        />
    );
}
export default Back;